package com.service.business.product.controller;

import com.service.business.framework.log.RequestLog;
import com.service.business.product.controller.rep.ProductHrComboPageRep;
import com.service.business.product.controller.rep.ProductLockPageRep;
import com.service.business.product.service.ProductLockComboService;
import com.service.core.rest.BaseController;
import com.service.core.rest.request.PageRequest;
import com.service.core.rest.response.PageResponse;
import com.service.dao.enums.CoinsEnum;
import com.service.dao.enums.HrComboTypeEnum;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("product-lock-combo")
@Api(tags = "存币(质押)业务相关")
public class ProductLockController extends BaseController {

	@Autowired
	private ProductLockComboService productLockComboService;

	@ApiOperation("存币业务套餐分页接口")
	@RequestLog("存币业务套餐分页接口")
	@PostMapping("page/{coinName}")
	public PageResponse<ProductLockPageRep> pageLockCombo(@PathVariable("coinName") CoinsEnum coin,
	                                                      @RequestBody PageRequest request) {
		return successQueryPageResponse(productLockComboService.pageLockCombo(coin,request));
	}
}
